import request from '@/utils/request.js'

// 查询船舶信息列表
export const shippingListApi = (params) => request({ url: `/web/shipping/list`, method: 'get', params, loading: true })

// 查询船舶信息列表 登录用户企业下的、不分页
export const shippingListByEnterpriseIdApi = (params) => request({ url: `/web/shipping/listByEnterpriseId`, method: 'get', params, loading: true })

// 完工单中船舶列表
export const getFinishOrdrShipApi = (data) => request({ url: `/web/finishOrder/getFinishOrdrShip`, method: 'post', data })

//新增
export const addShippingApi = (params) => request({ url: `/web/shipping`, method: 'post', data: params })

// 修改船舶信息
export const editShippingApi = (params) => request({ url: `/web/shipping`, method: 'put', data: params })

//删除船舶信息
export const deleteShipping = (params) => request({ url: `/web/shipping/${params}`, method: 'delete' })

//获取船舶信息详细信息
export const getShippingDetail = (id) => request({ url: `/web/shipping/${id}`, method: 'get' })
